package synchronizedMethodLockObject;

public class MyObject {
	
	synchronized public void methodA(){

		try {
			System.out.println("begin methodA threadName="+Thread.currentThread().getName());
			Thread.sleep(1000);
			System.out.println("end");
			
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
	}
	
	
}
